﻿@model HomeControllerModel.Index
<div class="page">
    <div class="pageHeader">
        <form id="pagerForm" onsubmit="return navTabSearch(this);" action="/auction/home"
        method="GET">
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label>
                        名 称：</label>
                    <input name="Name" type="text" maxlength="40" value="@Model.Name" />
                </li>
                <li>
                    <label>
                        状 态：
                    </label>
                    <select name="Status">
                        <option value="" @(Model.Status.HasValue ? "selected=selected" : string.Empty) >请选择</option>
                    </select>
                </li>
                <li>
                    <label>
                        精 品：
                    </label>
                    <select name="IsRefined">
                    </select>
                </li>
            </ul>
            <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">
                                    检索</button>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
        </form>
    </div>
    <div>
        <div class="panelBar">
            <ul class="toolBar">
                <li><a class="delete" href="/auction/home/detail/{param}" target="dialog" title="详细信息"
                    mask="true" width="900" height="500" onclick="javascript:void(0);"><span>详细信息</span></a></li>
                <li><a class="delete" href="/auction/bidding/history/{param}" target="dialog" title="出价记录"
                    mask="true" width="1200" height="700" onclick="javascript:void(0);" rel="/auction/bid/history/">
                    <span>出价记录</span></a></li>
            </ul>
        </div>
        <table class="table" layouth="138" width="100%">
            <thead>
                <tr>
                    <th width="40">
                        Id
                    </th>
                    <th width="60">
                        ItemId
                    </th>
                    <th>
                        名 称
                    </th>
                    <th width="80">
                        等 级
                    </th>
                    <th width="80">
                        类 型
                    </th>
                    <th width="80">
                        竞拍价
                    </th>
                    <th width="80">
                        回秒数
                    </th>
                    <th width="130">
                        竞拍时间
                    </th>
                    <th width="80">
                        补差价
                    </th>
                    <th width="80">
                        附加费
                    </th>
                    <th width="80">
                        可否补差
                    </th>
                    <th width="250">
                    </th>
                    <th width="80">
                        参考价
                    </th>
                    <th width="80">
                        成本价
                    </th>
                    <th width="80">
                        状 态
                    </th>
                    <th width="130">
                        上架时间
                    </th>
                    <th width="130">
                        添加时间
                    </th>
                </tr>
            </thead>
            <tbody>
                @foreach (var o in Model.Auctions)
                {
                    <tr target="param" rel="@o.Id">
                        <td>@(o.Id)
                        </td>
                        <td>@o.ItemId
                        </td>
                        <td>@o.Name
                        </td>
                        <td>@o.Grade
                        </td>
                        <td>@(o.IsVirtual ? "虚拟" : "实物")
                        </td>
                        <td>@o.PerPrice
                        </td>
                        <td>@o.Interval
                        </td>
                        <td>
                            @(o.StartTime)
                            - @(o.StopTime)
                        </td>
                        <td>@o.BuyPrice
                        </td>
                        <td>@o.AdditionalCharge.ToString("N")
                        </td>
                        <td>@o.DiffBuySupported
                        </td>
                        <td>
                        </td>
                        <td>@o.MarketPrice
                        </td>
                        <td>@o.Cost
                        </td>
                        <td>@o.Status
                        </td>
                        <td>
                            @o.OnlineTime.ToString("yyyy-MM-dd HH:mm:ss")
                        </td>
                        <td>
                            @o.CreatedOn.ToString("yyyy-MM-dd HH:mm:ss")
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>
